package it.win4buy.events
{
    /**
     *
     *	autore:
     *  pierangelo.mancusi@gmail.com
     *
     */

    import flash.events.Event;




    public class AlertComponentEvent extends Event
    {

        public static const LOADING:String="AlertComponentEvent.LOADING";

        public static const INITIALIZING:String="AlertComponentEvent.INITIALIZING";

        public static const RETRIEVE_USERDATA:String="AlertComponentEvent.RETRIEVE_USERDATA";

        public static const RETRIEVE_PLACEHOLDER_LIST:String="AlertComponentEvent.RETRIEVE_PLACEHOLDER_LIST";




        //-------------------------------------------
        //
        // Private Properties
        //
        //-------------------------------------------

        private var _message:String="";

        //-------------------------------------------
        //
        // Getters / Setters
        //
        //-------------------------------------------



        public function get message():String
        {
            return _message;
        }

        public function set message(value:String):void
        {
            _message=value;
        }

        //-------------------------------------------
        //
        // Constructor
        //
        //-------------------------------------------

        public function AlertComponentEvent(type:String, message:String="", bubbles:Boolean=false, cancelable:Boolean=false)
        {
            super(type, bubbles, cancelable);
            this.message=message;
        }

        //-------------------------------------------
        //
        // Override Methods
        //
        //-------------------------------------------

        override public function clone():Event
        {
            return new AlertComponentEvent(type, message, bubbles, cancelable);
        }

    }
}